package org.eenie.learn.seedquartz.model;

import javax.validation.constraints.NotEmpty;

public class TaskModel {
    private String id;
    @NotEmpty(message = "描述不能为空")
    private String desc;
    @NotEmpty(message = "周期不能为空")
    private String cron;
    private int status;
    private int job;
    private long timestamp;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getJob() {
        return job;
    }

    public void setJob(int job) {
        this.job = job;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}
